<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<div class="desplegable">
		<?php  $this->Form->new_menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="users form">
<?php echo $this->Form->create('User');?>
	<fieldset>
 		<legend><?php __('Editar Usuario'); ?></legend>
	<?php
		echo $this->Form->input('id');
		$disable = ($group_id == 1)? false: true;
	?>
		<table>
			<tr>
				<td><?php echo $this->Form->input('primer_nombre'); ?></td>
				<td><?php echo $this->Form->input('segundo_nombre'); ?></td>
			</tr>
			<tr>
				<td><?php echo $this->Form->input('primer_apellido'); ?></td>
				<td><?php echo $this->Form->input('segundo_apellido');?></td>
			</tr>
			<tr>
				<td><?php echo $this->Form->input('tipo_documento');?></td>
				<td><?php echo $this->Form->input('username',array('disabled'=>$disable));?></td>
			</tr>
			<tr>
				<td><?php echo $this->Form->input('passwords', array('value'=>$user['User']['password'], 'type'=>'password'));?></td>
				<td><?php echo $this->Form->input('genero');?></td>
			</tr>
			<tr>
				<td><?php echo $this->Form->input('telefono');?></td>
				<td><?php echo $this->Form->input('direccion');?></td>
			</tr>
			<tr>
				<td><?php echo $this->Form->input('correo');?></td>
				<td><?php echo $this->Form->input('honorarios');?></td>
			</tr>
			<tr>
				<td><?php echo $this->Form->input('fecha_vinculacion');?></td>
				<td><?php echo $this->Form->input('perfil',array('disabled'=>$disable));?></td>				
			</tr>
			<tr>
				<td><?php if($group_id == 1)echo $this->Form->input('group_id');?></td>
				<td><?php if($group_id == 1)echo $this->Form->input('ultimo_acceso');?></td>							
			</tr>	
		</table>
	</fieldset>
<?php echo $this->Form->end(__('Guardar', true));?>
</div>